{% extends "common/layout.html" %}
{% block content %}

    <row>
        <div class="col-sm-8 col-lg-offset-2">
            <div class="modal-dialog" role="document" style="width:100%;height: 100%">
                <div class="panel panel-primary ">
                    <div class="panel-heading">富文本编辑器</div>
                    {#标题#}
                    <div class="panel-body">
                        {#表单#}
                        <form class="form-horizontal form" style="margin-top: 10px" method="post"
                              action="{{ buildUrl('/document/post') }}">
                            <div class="input-group">
                                <span class="input-group-addon" id="basic-addon1">种类</span>
                                <select class="form-control  col-sm-2" name="type">
                                    <option>通知规定</option>
                                    <option>制度流程</option>
                                    <option>承建商库</option>
                                </select>

                                <span class="input-group-addon" id="basic-addon1">权级</span>
                                <select class="form-control  col-sm-2" name="weight">
                                    <option>普通</option>
                                    <option>重要</option>
                                    <option>置顶</option>
                                </select>


                                <span class="input-group-addon" id="basic-addon1">文章标题</span>
                                <input type="text" class="form-control" placeholder="请输入"
                                       aria-describedby="basic-addon1"
                                       name="title">
                                <span class="input-group-btn">
                          <button class="btn btn-default" type="submit" value="Submit">发表文章</button>
                              </span>


                            </div>
                            <textarea id="tinydemo2" name="content" placeholder="请输入内容.."></textarea>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </row>



{% endblock %}


{% block js %}
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
    <script src="{{ buildStaticUrl('/js/tinymce/tinymce.min.js') }}"></script>
    <script src="{{ buildStaticUrl('/js/document.js') }}"></script>


{% endblock %}